package phoenix.web.locators.flirt;

import org.openqa.selenium.By;

import phoenix.web.locators.base.MyProfileLocatorsBase;

/**
 * MyProfile page locators for Flirt
 */
public class MyProfileLocators extends MyProfileLocatorsBase
{
	/**
	 * Overrides specific locators
	 */
	public MyProfileLocators()
	{
		blockAvatarUpload = By.xpath("//*[@id='userNavPhoto']//*[contains(@src,'photo/show/id/')]");

		btnSaveMainInfo = By.xpath("//*[@id='profileEditor']//button[@class='btn small']");
		btnCancelMainInfo = By.xpath("//*[@id='profileEditor']//button[@class='btn green small']");

		btnSavePersonalInfo = By.xpath("//*[@id='profileDetails']//button[@class='btn small']");
		btnCancelPersonalInfo = By.xpath("//*[@id='profileDetails']//button[@class='btn green small']");

		btnSaveLookingForInfo = By.xpath("//*[@id='profileLookingFor']//button[@class='btn small']");
		btnCancelLookingForInfo = By.xpath("//*[@id='profileLookingFor']//button[@class='btn green small']");

		// Main info
		txtScreenname = By.xpath("//*[@id='content-top']//*[@class='screenname']");
		selectDay = By.xpath("//*[@id='profileEditor']//*[@class='field small select-widget day']//*[@class='value']");
		selectMonth = By.xpath("//*[@id='profileEditor']//*[@class='field small select-widget month']//*[@class='value']");
		selectYear = By.xpath("//*[@id='profileEditor']//*[@class='field small select-widget year']//*[@class='value']");
		txtLocation = By.xpath("//*[@id='profileEditor']//*[@class='field small select-widget location']//input");
		txtDescription = By.xpath("(//*[@id='profileEditor']//*[@id='textarea']//*[@class='textarea'])[1]");
		txtAboutMe = By.xpath("(//*[@id='profileEditor']//*[@id='textarea']//*[@class='textarea'])[2]");

		// Personal info
		selectHeight = By.xpath("(//*[@class='input-holder'])[9]//*[@class='value']");
		selectWeight = By.xpath("(//*[@class='input-holder'])[10]//*[@class='value']");
		selectBodyType = By.xpath("(//*[@class='input-holder'])[11]//*[@class='value']");
		selectHairColor = By.xpath("(//*[@class='input-holder'])[12]//*[@class='value']");
		selectEyesColor = By.xpath("(//*[@class='input-holder'])[13]//*[@class='value']");
		selectTattoo = By.xpath("(//*[@class='input-holder'])[14]//*[@class='value']");
		selectPircing = By.xpath("(//*[@class='input-holder'])[15]//*[@class='value']");
		selectOrientation = By.xpath("(//*[@class='input-holder'])[16]//*[@class='value']");
		selectMaritalStatus = By.xpath("(//*[@class='input-holder'])[17]//*[@class='value']");
		selectChildren = By.xpath("(//*[@class='input-holder'])[18]//*[@class='value']");
		selectLiving = By.xpath("(//*[@class='input-holder'])[19]//*[@class='value']");
		selectSmoke = By.xpath("(//*[@class='input-holder'])[20]//*[@class='value']");
		selectDrink = By.xpath("(//*[@class='input-holder'])[21]//*[@class='value']");
		selectIncome = By.xpath("(//*[@class='input-holder'])[22]//*[@class='value']");
		selectEthnicOrigin = By.xpath("(//*[@class='input-holder'])[23]//*[@class='value']");
		selectEducation = By.xpath("(//*[@class='input-holder'])[24]//*[@class='value']");
		selectReligion = By.xpath("(//*[@class='input-holder'])[25]//*[@class='value']");

		// Looking for info
		selectLookingGender = By.xpath("//*[@id='profileLookingFor']//div[@class='input-holder']//div[@class='value']");
		selectLookingAgeFrom = By.xpath("(//*[@id='profileLookingFor']//div[@class='input-holder']//div[@class='select-input value'])[1]");
		selectLookingAgeTo = By.xpath("(//*[@id='profileLookingFor']//div[@class='input-holder']//div[@class='select-input value'])[2]");
		txtLookingLocation = By.xpath("//*[@id='profileLookingFor']//input[@class='input-value select-input value']");

		// Photo upload
		blockPhotoUploader = By.id("ProfilePhotoUploadForm");
		inputFile = By.xpath("(.//*[@name='file'])[2]");
		blockPrimaryPhoto = By.xpath("//*[@id='profilePhotoList']//div[@class='photo-item single-photo']");
		btnRemovePhoto = By.cssSelector(".btn-close");

		// Active field for method selectItemInList:
		blockActiveField = By.cssSelector(".field.active li:contains");
		blockActiveInputHolder = By.cssSelector(".input-holder.active li:contains");
		blockActiveRange = By.cssSelector(".select-single.active li:contains");
	}
}
